package com.chenjun.mysite.common;

import java.util.Properties;

import org.apache.ibatis.datasource.unpooled.UnpooledDataSourceFactory;

import com.alibaba.druid.pool.DruidDataSource;

public class MyselfDefineDataSourceFactory extends UnpooledDataSourceFactory
{
	public MyselfDefineDataSourceFactory()
	{
		super.dataSource = new DruidDataSource();
		Properties properties = new Properties();
		/**
		 * 这行很重要 如果在Spring环境中需要配置 <property name="filters" value="stat" />
		 */
		properties.setProperty("filters", "stat,wall");
		super.setProperties(properties);
	}
}
